package ooday01;

public class Car01 {
    String vehicleType;
    String color;
    int years;
    boolean secondHand;

    Car01(){}
    Car01(String vehicleType,String color,int years,boolean secondHand){
        this.vehicleType=vehicleType;
        this.color=color;
        this.years=years;
        this.secondHand=secondHand;
    }
    void sellIm(){
        System.out.println("这是一辆"+color+"色的"+vehicleType+"使用年限："+years+"年");
        System.out.println("是否为二手车："+secondHand);
    }

}
